package com.example.baseframework.activity

import android.os.Bundle
import com.xh.baselibrary.activity.BaseVBActivity
import com.example.baseframework.databinding.ActivityMainBinding
import com.example.baseframework.anim.BrokenActivity
import com.example.baseframework.lottery.ui.LotteryActivity
import com.xh.baselibrary.ex.*
import org.jetbrains.anko.startActivity

class MainActivity : BaseVBActivity<ActivityMainBinding>() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        mViewContainer.btnBroken.onClick {
            startActivity<BrokenActivity>()
        }
        mViewContainer.btnLottery.onClick {
            startActivity<LotteryActivity>()
        }
        mViewContainer.btnWheel.onClick {
            startActivity<WheelActivity>()
        }
    }
}